﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.PackageManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.PackageManagement.PackageSchemeVMs
{
    public partial class PackageSchemeTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._PackageScheme._Name")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.Name);
        [Display(Name = "_Model._PackageScheme._Code")]
        public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.Code);
        [Display(Name = "_Model._PackageScheme._ProductId")]
        public ExcelPropety ProductId_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.ProductId);
        [Display(Name = "_Model._PackageScheme._ProductName")]
        public ExcelPropety ProductName_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.ProductName);
        [Display(Name = "_Model._PackageScheme._Rules")]
        public ExcelPropety Rules_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.Rules);
        [Display(Name = "_Model._PackageScheme._Qty")]
        public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.Qty);
        [Display(Name = "_Model._PackageScheme._EnablePrint")]
        public ExcelPropety EnablePrint_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.EnablePrint);
        [Display(Name = "_Model._PackageScheme._SerialNumber")]
        public ExcelPropety SerialNumber_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.SerialNumber);
        [Display(Name = "_Model._PackageScheme._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.CreateTime, true);
        [Display(Name = "_Model._PackageScheme._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.UpdateTime, true);
        [Display(Name = "_Model._PackageScheme._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.CreateBy);
        [Display(Name = "_Model._PackageScheme._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.UpdateBy);
        [Display(Name = "_Model._PackageScheme._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.IsValid);
        [Display(Name = "_Model._PackageScheme._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<PackageScheme>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class PackageSchemeImportVM : BaseImportVM<PackageSchemeTemplateVM, PackageScheme>
    {
            //import

    }

}